import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';

import 'huaweimap_platform_interface.dart';

/// An implementation of [HuaweimapPlatform] that uses method channels.
class MethodChannelHuaweimap extends HuaweimapPlatform {
  /// The method channel used to interact with the native platform.
  @visibleForTesting
  final methodChannel = const MethodChannel('huaweimap');

  @override
  Future<String?> ohosMapSelectAddress() async {
    final version = await methodChannel.invokeMethod<String>('ohosMapSelectAddress');
    return version;
  }
  @override
  Future<String?> ohosAccountLogin(String marks) async {
    final version = await methodChannel.invokeMethod<String>('ohosAccountLogin',marks);
    return version;
  }
  @override
  Future<String?> ohosMapMarker(String marks) async {
    final version = await methodChannel.invokeMethod<String>('ohosMapMarker',marks);
    return version;
  }
  @override
  Future<String?> ohosMapTranceOverLay(String marks) async {
    final version = await methodChannel.invokeMethod<String>('ohosMapTranceOverLay',marks);
    return version;
  }
}
